package routers

import (
	"bigbackend/controllers"
	"github.com/gin-gonic/gin"
)

// CarsRoute 车辆数据相关路由注册
func CarsRoute(e *gin.Engine) {
	adminRoutes := e.Group("/cars")
	{
		adminRoutes.GET("/head", controllers.GetHead)
		adminRoutes.GET("/centerData", controllers.GetCenterData)
		adminRoutes.GET("/centerLeft1", controllers.GetCenterLeft1)
		adminRoutes.GET("/centerLeft2", controllers.GetCenterLeft2)
		adminRoutes.GET("/centerRight1", controllers.GetCenterRight1)
		adminRoutes.GET("/centerRight2", controllers.GetCenterRight2)
		adminRoutes.GET("/bottomLeft", controllers.GetBottomLeft)
		adminRoutes.GET("/bottomRight", controllers.GetBottomRight)
	}
}
